package com.xinyue.design.iterator;

import java.util.ArrayList;
import java.util.List;

public class Client {
	
	public static void main(String[] args) {
		List<Object> list = new ArrayList<Object>();
		list.add("123");
		list.add("1234");
		ListImpl impl = new ListImpl(list);
		
		Iterator it = impl.createIterator();
		it.first();
		while (!it.isLast()) {
			System.out.println(it.IteratorItem());
		}
	}
}
